package com.yuanchu.marketing.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yuanchu.marketing.entity.YoshopUserCouponEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 用户优惠券记录表
 * 
 * @author adan
 * @email 2028038953@gmail.com
 * @date 2023-12-19 20:57:23
 */
@Mapper
public interface YoshopUserCouponDao extends BaseMapper<YoshopUserCouponEntity> {

    @Select("select coupon_id from yoshop_user_coupon where user_id = #{userId}")
    List<Integer> selectUserCouponId(Integer userId);

}
